import { constantRoutes } from '@/router'
export default {
  // 维护公共布局左侧菜单数据
  // menuList数据1 静态路由 2 根据权限点过滤路由
  namespaced: true,
  state: {
    menuList: []
  },

  mutations: {
    // 存储
    setMenuList (state, filterRoutes) {
      state.menuList = [...constantRoutes, ...filterRoutes]
    }
  }
}
